# 加密算法: md5 sha1 sha256
# base64 可逆
import hashlib

msg = '中午一起吃饭去！'
md5 = hashlib.md5(msg.encode('utf-8'))
print(md5.hexdigest())
# 2880cd5f9d300a3b3cbd11e2a9978d55

sha1 = hashlib.sha1(msg.encode('utf-8'))
print(sha1.hexdigest())
# ecb952c61188c23b25bd4abf99100168dfa81902

sha256 = hashlib.sha256(msg.encode('utf-8'))
print(sha256.hexdigest())
# baf48a4531b4b87b7f9a05b11254fe6ca5598a4f14f12c154cd74929df35ff33
